<form class="layui-form layui-form-pane" id="LAY-form" lay-filter="LAY-form">
    <input type="text" class="layui-hide" id="id" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label">商品名称<i style="color:red">*</i></label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" placeholder="请输入商品名称" lay-verify="required" lay-verType="tips" name="name">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类别</label>
        <div class="layui-input-inline">
            <select name="type" lay-filter="label">
                <option value="" selected>请选择</option>
                <option value="1">装备</option>
                <option value="2">图纸</option>
                <option value="3">消耗品</option>
                <option value="4">制作材料</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">当前价格</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" placeholder="$" name="price">
        </div>
    </div>
    <!-- 隐藏submit 按钮, 用于yes回调进行表单提交-->
    <button type="submit" class="layui-hide" lay-submit></button>
</form>

